package de.mp3player.helpers;


import java.awt.datatransfer.DataFlavor;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.Serializable;

import javax.activation.DataSource;

import de.mp3player.objects.Medium;

@SuppressWarnings("serial")
public class TransferDaten implements Serializable, DataSource{
	
	private String mimeType;
	private Medium song;
	private static DataFlavor transferDataFlavor = null;
	
	public static DataFlavor getFlavor(){
		if(transferDataFlavor == null)
			transferDataFlavor = new DataFlavor(TransferDaten.class,"TransferDaten");
		return transferDataFlavor;
	}
	public TransferDaten(Medium song){
		this.song = song;
	}
	
	public Medium getMedium(){
		return song;
	}

	@Override
	public InputStream getInputStream() throws IOException {
		// TODO Transferdaten
		return null;
	}
	@Override
	public String getName() {
		// TODO Transferdaten
		return null;
	}
	@Override
	public OutputStream getOutputStream() throws IOException {
		// TODO Transferdaten
		return null;
	}
	@Override
	public String getContentType() {
		// TODO Transferdaten
		return null;
	}
}
